package top.carrotguo.weibo.utils;

import java.io.Closeable;
import java.io.IOException;

/**
 * Created by carrot on 2018-10-29.
 */

public class IOUtils {

    public static boolean close(Closeable io){
        if (io != null) {
            try {
                io.close();
                return true;
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
        return false;
    }

}
